package com.ruoyi.jpbi.service.impl;

import com.ruoyi.jpbi.domain.jianshe.Realproduct;
import com.ruoyi.jpbi.mapper.RealproductMapper;
import com.ruoyi.jpbi.service.RealproductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class RealproductServiceImpl implements RealproductService {
    @Autowired
    RealproductMapper realproductMapper;

    @Override
    public List<Realproduct> findAllByUser(Realproduct realproduct) {
        return realproductMapper.findAllByUser(realproduct);
    }

    @Override
    public int insertRealproduct(Realproduct realproduct) {
        return realproductMapper.insertRealproduct(realproduct);
    }

    @Override
    public Realproduct findAllById(Long id) {
        return realproductMapper.findAllById(id);
    }

    @Override
    public int updaterealproduct(Realproduct realproduct) {
        return realproductMapper.updaterealproduct(realproduct);
    }

    @Override
    public int deleteRealproductByIds(String ids) {
        return realproductMapper.deleteRealproductByIds(ids);
    }
}
